//
//  HWSearchViewCell.m
//  HWanGame
//
//  Created by Chendaobin on 2019/8/27.
//  Copyright © 2019年 Chendaobin. All rights reserved.
//

#import "HWSearchViewCell.h"

@interface HWSearchViewCell()

@end

@implementation HWSearchViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.nameLabel.layer.cornerRadius = 5;
    self.nameLabel.layer.masksToBounds = YES;
    
    
}

- (void)setIndex:(NSIndexPath *)index {
    _index  = index ;
    NSInteger row = index.row;
    NSInteger  sesu =  row%4;
    if (sesu == 0 ) {
        self.nameLabel.backgroundColor = RGB(251, 235, 236);
        self.nameLabel.textColor = RGB(245, 67, 83);
        
        
        
    } else if (sesu == 1) {
        self.nameLabel.backgroundColor = RGB(251, 245, 223);
        self.nameLabel.textColor = RGB(255, 133, 35);
        
        
    }else if (sesu == 2) {
        self.nameLabel.backgroundColor = RGB(233, 244, 238);
        self.nameLabel.textColor = RGB(146, 205, 67);
        
        
    } else {
        self.nameLabel.backgroundColor = RGB(238, 241, 248);
        self.nameLabel.textColor = RGB(173, 200, 253);
        
        
        
    }
    
    

}




@end
